

SET(SRC_FILES 
	./main.cpp
)

SET(INCLUDE_DIRS
	${PROJECT_SOURCE_DIR}/corelib/include
	${PROJECT_SOURCE_DIR}/guilib/include
	${UtiLite_INCLUDE_DIRS}
	${OpenCV_INCLUDE_DIRS}
)

INCLUDE(${QT_USE_FILE})

SET(LIBRARIES
    ${UtiLite_LIBRARIES}
    ${QT_LIBRARIES} 
	${OpenCV_LIBRARIES} 
)

#include files
INCLUDE_DIRECTORIES(${INCLUDE_DIRS})

# Add binary called "databaseViewer" that is built from the source file "main.cpp".
# The extension is automatically found.
ADD_EXECUTABLE(databaseViewer WIN32 ${SRC_FILES})
TARGET_LINK_LIBRARIES(databaseViewer corelib guilib ${LIBRARIES})

SET_TARGET_PROPERTIES( databaseViewer 
  PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-databaseViewer)
        
INSTALL(TARGETS databaseViewer
        RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT runtime
        LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT devel
        ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" COMPONENT devel)
		